package com.study.test3;

/**
 * @Auther: 杨通通
 * @Date: 2024/10/21 23:13
 * @Description:
 */
public class basetype1 {

    public static void main(String[] args) {
        Integer i1 = 127;
        Integer i2 = 127;
        System.out.println(i1 == i2);//true

        Integer i3 = 128;
        Integer i4 = 128;
        System.out.println(i3==i4);//false

        String s1 =new String("a");
        String s2 = new String("a");
        System.out.println(s1.equals(s2));
        System.out.println(s1 == s2);
    }
}